﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;

namespace Transport.Core.Models.Parcels
{
    public class ParcelDelivery
    {
        [Key]
        public int ParcelDeliveryId { get; set; }
        public int DeliveryUserId { get; set; }
        [ForeignKey("ParcelDeliveryGroup")]
        public int ParcelDeliveryGroupId { get; set; }
        public virtual ParcelDeliveryGroup ParcelDeliveryGroup { get; set; }
        [ForeignKey("Parcel")]
        public int ParcelId { get; set; }
        public virtual Parcel Parcel { get; set; }
        public DateTime CreateDate { get; set; }
        public bool IsDeleted { get; set; }
    }
}
